﻿<Window x:Class="MPE.ErrorSettings"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:MPE"
        mc:Ignorable="d"
        Title="Настройка правил анализатора ошибок" Height="462.685" Width="879.734" MouseLeftButtonDown="Window_MouseLeftButtonDown">
    <Grid>
        <Label Content="Здесь можно настроить элементы, которые проверяет анализатор ошибок" HorizontalAlignment="Left" Margin="146,6,0,0" VerticalAlignment="Top" FontSize="14"/>
        <GroupBox Header="[BREAK__POINT]" HorizontalAlignment="Left" Height="132" Margin="10,177,0,0" VerticalAlignment="Top" Width="427" FontSize="14" FontWeight="Bold">
            <Grid>
                <CheckBox x:Name="bp_exist" Content="Метка возврата с таким именем уже объявлена" IsChecked="True" HorizontalAlignment="Left" Margin="7,10,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="Bp_exist_Click"/>
                <CheckBox x:Name="bp_no_contain_gtbp" Content="Не имеет закрывающегося блока [GO__TO__BREAK__POINT]" IsChecked="True" HorizontalAlignment="Left" Margin="7,34,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="Bp_no_contain_gtbp_Click"/>
                <CheckBox x:Name="bp_bad_format" Content="Неправильный формат блока [BREAK__POINT]" IsChecked="True" HorizontalAlignment="Left" Margin="7,58,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="Bp_bad_fornat_Click"/>
            </Grid>
        </GroupBox>
        <GroupBox Header="[GO__TO__BREAK__POINT]" HorizontalAlignment="Left" Height="107" Margin="10,314,0,0" VerticalAlignment="Top" Width="427" FontWeight="Bold" FontSize="14">
            <Grid>
                <CheckBox x:Name="gtbp_no_exist" Content="Не имеет объявления через [BREAK__POINT]" IsChecked="True" HorizontalAlignment="Left" Margin="10,10,-72,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="Gtbp_no_exist_Click"/>
                <CheckBox x:Name="gtbp_forward_of_bp" Content="Объявлена раньше метки [BREAK__POINT]" IsChecked="True" HorizontalAlignment="Left" Margin="10,34,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="Gtbp_forward_of_bp_Click"/>
                <CheckBox x:Name="gtbp_bad_format" Content="Неправильный формат блока [GO__TO_BREAK_POINT]" IsChecked="True" HorizontalAlignment="Left" Margin="10,58,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="Gtbp_bad_format_Click"/>
            </Grid>
        </GroupBox>
        <GroupBox Header="[IF]" HorizontalAlignment="Left" Height="132" Margin="10,40,0,0" VerticalAlignment="Top" Width="414" FontWeight="Bold" FontSize="14">
            <Grid>
                <CheckBox x:Name="if_no_endif" Content="Условие всегда должно закрываться блоком [ENDIF]" IsChecked="True" HorizontalAlignment="Left" Margin="9,34,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="If_no_endif_Click"/>
                <CheckBox x:Name="if_no_params" Content="Условие не имеет параметров" IsChecked="True" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="If_no_params_Click"/>
                <CheckBox x:Name="if_elses_more_then_ifs" Content="Блоков [ELSE] больше чем блоков [IF]" IsChecked="True" HorizontalAlignment="Left" Margin="9,58,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="If_elses_more_then_ifs_Click"/>
                <CheckBox x:Name="if_more_endifs" Content="Лишний [ENDIF]" IsChecked="True" HorizontalAlignment="Left" Margin="10,82,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="If_more_endifs_Click"/>
            </Grid>
        </GroupBox>
        <GroupBox Header="Функции" HorizontalAlignment="Left" Height="381" Margin="442,40,0,0" VerticalAlignment="Top" Width="414" FontWeight="Bold" FontSize="14">
            <Grid>
                <CheckBox x:Name="no_func" Content="Неизвестная функция" IsChecked="True" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="No_func_Click"/>
                <CheckBox x:Name="less_params" Content="У функции слишком мало параметров" IsChecked="True" HorizontalAlignment="Left" Margin="10,34,-51,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="Less_params_Click"/>
                <CheckBox x:Name="more_params" Content="У функции слишком много параметров" IsChecked="True" HorizontalAlignment="Left" Margin="10,58,-58,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="More_params_Click"/>
                <CheckBox x:Name="unknown_chars" Content="Лишние символы перед ключевым словом" IsChecked="True" HorizontalAlignment="Left" Margin="10,82,-86,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="Unknown_chars_Click"/>
                <CheckBox x:Name="no_params" Content="Функция без параметров" IsChecked="True" HorizontalAlignment="Left" Margin="10,106,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="No_params_Click"/>
                <CheckBox x:Name="func_no_params" Content="Функция не должна принимать параметры" IsChecked="True" HorizontalAlignment="Left" Margin="11,131,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="Func_no_params_Click"/>
                <CheckBox x:Name="js_bad_format" Content="Неправильный формат [EVALUATE__JS]" IsChecked="True" HorizontalAlignment="Left" Margin="11,155,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="Js_bad_format_Click"/>
                <CheckBox x:Name="bad_brackets" Content="Число скобок не совпадает" IsChecked="True" HorizontalAlignment="Left" Margin="11,179,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="Bad_brackets_Click"/>
                <CheckBox x:Name="bad_js" Content="[JS] должен быть закрыт блоком [/JS]" IsChecked="True" HorizontalAlignment="Left" Margin="11,200,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="Bad_js_Click"/>
                <CheckBox x:Name="multilineComments" Content="Многострочное комментирование" IsChecked="True" HorizontalAlignment="Left" Margin="11,224,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="MultilineComments_Click"/>
                <Label Content="Когда копировать текст плашки с ошибкой?" HorizontalAlignment="Left" Margin="3,259,0,0" VerticalAlignment="Top"/>
                <RadioButton x:Name="rb1" Content="Ctrl + одинарный клик" HorizontalAlignment="Left" Margin="11,287,0,0" VerticalAlignment="Top" Checked="RB_Checked" IsChecked="True"/>
                <RadioButton x:Name="rb2" Content="При одинарном клике" HorizontalAlignment="Left" Margin="11,309,0,0" VerticalAlignment="Top" Checked="RB_Checked"/>
                <RadioButton x:Name="rb3" Content="Никогда" HorizontalAlignment="Left" Margin="11,330,0,0" VerticalAlignment="Top" Checked="RB_Checked"/>
                <CheckBox x:Name="function_after_comment" Content="Функция после комментария будет выполнена" IsChecked="True" HorizontalAlignment="Left" Margin="11,248,0,0" VerticalAlignment="Top" FontSize="14" FontWeight="Bold" Click="function_after_comment_Click"/>
            </Grid>
        </GroupBox>

    </Grid>
</Window>
